package com.pt.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@ApiModel(value = "评论请求参数")
public class CommentRequest {
    
    @NotNull(message = "种子ID不能为空")
    @ApiModelProperty(value = "种子ID", required = true)
    private Long torrentId;
    
    @NotBlank(message = "评论内容不能为空")
    @Size(max = 1000, message = "评论内容不能超过1000字符")
    @ApiModelProperty(value = "评论内容", required = true)
    private String content;
    
    @ApiModelProperty(value = "父评论ID（回复时需要）")
    private Long parentId;
} 